#define _CRT_SECURE_NO_WARNINGS 1

int removeElement(int* nums, int numsSize, int val) {
    int des = 0;
    for (int src = 0; src < numsSize; src++) {
        if (nums[src] != val) {
            nums[des] = nums[src];
            des++;
        }
    }
    return des;
}

